package ooday04;

public class Fish extends Animal implements Swim {
    Fish(String name, int age, String color) {
        super(name, age, color);
    }
    void eat(){
        System.out.println("一条叫做"+name+"的鱼在吃虾米");
    }
    public void swim(){
        System.out.println("一条"+color+age+"岁的，名字叫做"+name+"的鱼鱼正在游泳");
    }
}
